package com.sl.au.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.sl.au.entity.EXDEviewPayTotal;
import com.sl.au.repository.EXDEPayBackToArticleRepository;
import com.sl.au.service.EXDEPayBackToArticleService;

/**
 * 市场部回款统计
 * @author yry
 * 2017-02-20
 */
@Service(value="EXDEPayBackToArticleService")
@Transactional
public class EXDEPayBackToArticleServiceImpl extends BaseServiceImpl implements EXDEPayBackToArticleService {

	@Autowired
	EXDEPayBackToArticleRepository exdePayBackToArticleRepository;
	
	@Override
	public EXDEPayBackToArticleRepository getRepository() {
		return this.exdePayBackToArticleRepository;
	}

	/**
	 * 调用查询语句
	 */
	@Override
	public List<EXDEviewPayTotal> getMyPage(Map<String, String> condition) {
		List<EXDEviewPayTotal> pages=null;
		//System.out.println(condition.get("year"));
		pages = exdePayBackToArticleRepository.findAllTrance(condition.get("year"));
		//System.out.println(pages);
		return pages;
	}

}
